package service

import (
	"erp/model"
)

func GetUserByUsername(username string) model.User {
	row := model.User{}
	dbEngine.Table("f_admin_user").Where("username=?", username).Get(&row)
	return row
}
func GetUserByPhone(phone string) model.User {
	row := model.User{}
	dbEngine.Table("f_admin_user").Where("phone=?", phone).Get(&row)
	return row
}
